package ClientDB;

import org.eclipse.swt.graphics.Image;

import DataConnectionInterface.Card;

public class ICard implements ICardInterface{

	private Image image;
    private Integer attack;
    private Integer defense;
    private String name;

    public ICard(Image image,int attack, int defense, String name) {
        this.image = image;
        this.attack = attack;
        this.defense = defense;
        this.name = name;
    }

    public Image getImage(){
        return image;
    }

    public Integer getAttack() {
        return attack;
    }
    
    public void setAttack(int attack) {
        this.attack = attack;
    }

    public Integer getDefense() {
        return defense;
    }
    
    public void setDefense(int defense) {
        this.defense = defense;
    }

    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public void setCardInfo(Card card){
    	this.setAttack(card.getAttack());
    	this.setDefense(card.getDefense());
    	this.setName(card.getName());
    }

}
